package com.example.order.mapper;

import com.example.order.domain.po.OrderDetail;
import com.example.order.domain.vo.OrderSkuVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {
    void insertOrderDetail(List<OrderDetail> orderDetailList);

    /**
     * 查询订单详情
     * @param id
     * @return
     */
    @Select("select item_id,product_id,item_name,spec,num,price,image from order_detail where order_id = #{id}")
    List<OrderSkuVO> selectOrderDetailList(Long id);
}
